﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BO;
using DAO;
using System.Data;

namespace BL
{
    public class B_Building
    {
        D_Building dal = new D_Building();
        public static B_Building CreateInstance()
        {
            return new B_Building();
        }
        public bool CreateOneBuilding(Building_Info Building_Info)
        {

            return dal.CreateOneBuilding(Building_Info);
        }
        public bool EditOneBuilding(Building_Info Building_Info)
        {

            return dal.EditOneBuilding(Building_Info);
        }
        public bool RemoveOneBuilding(int BuildingID)
        {

            return dal.RemoveOneBuilding(BuildingID);
        }
        public DataTable GetAllBuilding()
        {
            
            return dal.GetAllBuilding();
        }
        public Building_Info GetOneBuilding(int BuildingID)
        {
            
            return dal.GetOneBuilding(BuildingID);
        }
    }
}
